Symmetric encryption apparatus and storage medium, and symmetric decryption apparatus and storage medium

ABSTRACT

In a symmetric encryption apparatus according to an embodiment, a storage unit stores a symmetric key formed from a plurality of elements of a first polynomial ring. A plaintext acceptance unit accepts input of plaintext information. A plaintext polynomial generation unit generates a plaintext polynomial by embedding the plaintext information whose input has been accepted in at least one of terms of a polynomial in a subspace of the first polynomial ring. A mask polynomial generation unit generates a mask polynomial having the symmetric key as a solution based on a second commutative ring defined over the first polynomial ring. An encryption unit generates a ciphertext using the plaintext polynomial and the mask polynomial.

CROSS-REFERENCE TO THE RELATED APPLICATIONS

This application is based upon and claims the benefit of priority from the prior Japanese Patent Applications No. 2013-258653, filed on Dec. 13, 2013; the entire contents of which are incorporated herein by reference.

FIELD

Embodiments described herein relate generally to a symmetric encryption apparatus and a storage medium, and a symmetric decryption apparatus and a storage medium.

BACKGROUND

Cryptography is used to conceal communication contents. Cryptography includes a symmetric encryption scheme and an asymmetric encryption scheme. The symmetric encryption scheme uses a shared secret key in encryption processing and decryption processing. The asymmetric encryption scheme uses asymmetric keys (a public key and private key that are different from each other) in encryption processing and decryption processing.

A representative symmetric encryption scheme is AES (Advanced Encryption Standard). AES improves the security level by repeatedly processing a round function that can be processed at high speed. Note that AES has no homomorphism (to be described later).

A symmetric encryption scheme Enc is called homomorphic encryption when the following conditions are satisfied. Assume that two ciphertexts corresponding to a secret key sk and two plaintexts m₁ and m₂ are represented by c₁=Enc(sk, m₁) and c₂=Enc(sk, m₂). When it is possible to calculate a new ciphertext c′=c₁ (*) c₂=Enc(m₁ (+) m₂) from the two ciphertexts c₁ and c₂ without decoding into the plaintexts m₁ and m₂, the encryption scheme Enc is called homomorphic encryption. Note that (*) and (+) represent operators.

When the operator (+) represents addition, the encryption scheme Enc is called additive homomorphic encryption. When the operator (+) represents multiplication, the encryption scheme Enc is called multiplicative homomorphic encryption. When there are two types of ciphertext calculation (*) for implementing additive homomorphism and multiplicative homomorphism, the encryption scheme Enc is called (somewhat) fully homomorphic encryption.

The above-described symmetric encryption scheme generally has no specific problem. From a study, however, the present inventor considers that it is possible to increase the parallelism and improve the calculation efficiency.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram schematically showing the arrangement of a symmetric encryption apparatus according to the first embodiment;

FIG. 2 is a is a block diagram schematically showing the arrangement of a symmetric decryption apparatus according to the first embodiment;

FIG. 3 is a flowchart for explaining encryption processing according to the first embodiment;

FIG. 4 is a flowchart for explaining decryption processing according to the first embodiment;

FIG. 5 is a block diagram schematically showing the arrangement of a homomorphic calculation apparatus used in Modification 2 of the first embodiment;

FIG. 6 is a flowchart for explaining homomorphic calculation processing according to Modification 2;

FIG. 7 is a block diagram schematically showing the arrangement of a symmetric encryption apparatus according to the second embodiment;

FIG. 8 is a block diagram schematically showing the arrangement of a symmetric decryption apparatus according to the second embodiment;

FIG. 9 is a flowchart for explaining encryption processing according to the second embodiment; and

FIG. 10 is a flowchart for explaining decryption processing according to the second embodiment.

DETAILED DESCRIPTION

In general, according to one embodiment, a symmetric encryption apparatus comprises a storage unit, a plaintext acceptance unit, a plaintext polynomial generation unit, a mask polynomial generation unit, and an encryption unit.

The storage unit stores a symmetric key formed from a plurality of elements of a first polynomial ring.

The plaintext acceptance unit accepts input of plaintext information.

The plaintext polynomial generation unit generates a plaintext polynomial by embedding the plaintext information whose input has been accepted in at least one of terms of a polynomial in a subspace of the first polynomial ring.

The mask polynomial generation unit generates a mask polynomial having the symmetric key as a solution based on a second commutative ring defined over the first polynomial ring.

The encryption unit generates a ciphertext using the plaintext polynomial and the mask polynomial.

Each embodiment will be described below with reference to the accompanying drawings. Note that each apparatus to be described below can be implemented by a hardware arrangement, or a combination of hardware and software resources. As software of the combination, a program for causing a computer to implement the function of each apparatus when it is installed in advance from a network or non-transitory computer-readable storage medium into the computer and executed by the processor of the computer is used.

<Overview of First Embodiment>

An overview of the first embodiment will be described in the order of notation, encryption processing, and decryption processing.

Notation used in this embodiment will be explained first.

Let A be a commutative ring, and S=A[t₁, . . . , t_(m′)]={Σc_(i1, i2, . . . im′)t₁ ^(i1)t₂ ^(i2) . . . t_(m′) ^(im′)|c_(i1, i2, . . . im′)εA} be an m′-variable polynomial ring with variables t₁, . . . , t_(m′) (S will also be referred to as the first commutative ring).

A commutative ring with a polynomial as an element is represented by R=S[x₁, . . . , x_(m)] (R will also be referred to as the second commutative ring). For example, S may have the elements of an integer ring Z={0, ±1, ±2, . . . } as coefficients, and may be a polynomial ring Z[t₁, . . . , t_(m′)] with the variables t₁, . . . , t_(m′) for m′≧1. The commutative ring R may be a polynomial ring (Z[t₁, . . . , t_(m′)]) [x₁, . . . , x_(m)] with the polynomial ring S=Z[t₁, . . . , t_(m′)] as a coefficient.

The commutative ring R and the polynomial ring S may be public parameters in a system, or secret information between communication parties sharing a symmetric key.

A secret key sk is formed from n elements (s₁, s₂, . . . , s_(n)) of the polynomial ring S. For example, sk=(s₁(t₁, . . . , t_(m′)), . . . , s_(n)(t₁, . . . , t_(m′))) may be given where each element s_(i) of the secret key sk is a polynomial s_(i)(t₁, . . . , t_(m′)) with the variables t₁, . . . , t_(m′). Assume that s_(i) represents a polynomial where the degree for each of the variables t₁, . . . , t_(m′) is equal to or smaller than a predetermined value (the degree is represented by d). Alternatively, each element s_(i) of the secret key sk may be a polynomial s_(i)(t) with a variable t, thereby obtaining sk=(s₁(t), . . . , s_(n)(t)). In this case, s_(i) represents a polynomial where the degree of the variable t is equal to or smaller than a predetermined value (the degree is represented by d).

In this embodiment, plaintext information msg as a document to be encrypted is encoded into elements in a subspace M of the polynomial ring S. The plaintext information will be referred to as a plaintext hereinafter.

The subspace M is a set including a polynomial as an element. Each term of a polynomial is called a base. Assume that the subspace M is a set including, as an element, a polynomial formed from two or more bases.

Encoding processing from the plaintext msg to an element e in the subspace M is represented by e=Ecd(msg). Note that the encoding result e is a polynomial with the elements of the commutative ring A as coefficients and a variable t_(j).

On the other hand, decoding processing from the element e in the subspace M of the ring S to the decrypted text msg′ is represented by msg′=Dcd(e). The processing Ecd or Dcd may accept the secret key sk as an input in addition to the plaintext msg or encoding result e, and execute encoding processing e=Ecd(sk, msg) or decoding processing msg′=Dcd(sk, e). The processes Ecd and Dcd are designed to obtain msg=Dcd(Ecd(msg)) (the secret key sk is added as an input to the processes Ecd and Dcd, as needed).

If, for example, the polynomial ring is represented by S=Z[t₁, . . . , t_(m′)], the encoding processing Ecd may divide the plaintext msg into m′ bit strings msg₁∥msg₂∥ . . . ∥msg_(m′) (where ∥ represents bit concatenation) by representing the plaintext by bits, thereby outputting a plaintext polynomial e=Σmsg_(i)t_(i). In this case, the decoding processing Dcd(sk, e) can decode the bit strings msg₁|msg₂∥ . . . ∥msg_(m′)=msg. Assume that m′ is a value that satisfies m′≦dw−1 for the above-described degree d and a degree w (to be described later).

Alternatively, for example, if the polynomial ring is represented by S=Z[t], the encoding processing Ecd may divide the plaintext msg into m bit strings msg₁∥msg₂∥ . . . ∥msg_(m) by representing the plaintext by bits, thereby outputting a plaintext polynomial of degree (m−1), e=Σmsg_(i)t^(i-1), with the variable t. In this case, the decoding processing Dcd(sk, e) can decode the bit strings msg₁∥msg₂∥ . . . ∥msg_(m)=msg. Note that m is a value that satisfies m≦dw−1 for the above-described degree d and the degree w (to be described later).

Although a case in which the plaintext msg undergoes bit division has been explained, the present invention is not limited to this. The plaintext msg may undergo l-adic expansion (for example, l=2¹⁶=65536), and each digit obtained by performing l-adic expansion may be associated with the bit string msg_(i). At this time, decoding processing performs decoding into the plaintext msg by converting a value obtained by performing l-adic expansion into a predetermined format such as a binary or decimal number.

Although a case in which an encoding result is certainly calculated for the plaintext msg has been described, the present invention is not limited to this. An encoding result may stochastically be calculated for the plaintext msg by setting some of the bit strings msg_(i) to random integers rnd_(i). At this time, the decoding processing extracts the bit strings msg_(i) except for the random integers rnd_(i), and performs decoding into the plaintext msg.

The respective processes Ecd and Dcd may be public parameters in the system, or secret information between communication parties sharing a symmetric key.

An overview of encryption processing and decryption processing according to this embodiment will be described next.

The transmitter and receiver of a ciphertext share, as a symmetric key, the secret key sk=(s₁, . . . , s_(n)) formed from n elements of the polynomial ring S. Note that the transmitter corresponds to a symmetric encryption apparatus (to be described later). The receiver corresponds to a symmetric decryption apparatus (to be described later).

The transmitter of the ciphertext encodes the plaintext msg, and calculates the plaintext polynomial e=Ecd(msg).

The transmitter randomly generates a polynomial f(x₁, . . . , x_(n)) of degree w or lower from the commutative ring R or a subset of R=S[x₁, . . . , x_(n)]. Note that the degree of f(x₁, . . . , x_(n)) is defined by the maximum value of the degrees of the respective terms of f(x₁, . . . , x_(n)) with variables x₁, . . . , x_(n).

If S=A[t₁, . . . , t_(m′)] holds, f is represented as a polynomial with the variables t₁, . . . , t_(m′) in addition to the variables x₁, . . . , x_(n). Unless misunderstood, f will be represented as a polynomial with variables x₁, . . . , x_(n). The same applies to c(x₁, . . . , x_(n)) and g(x₁, . . . , x_(n)) (to be described later).

The transmitter calculates the ciphertext c(x₁, . . . , x_(n))=e+f(x₁, . . . , x_(n))−f(s₁, . . . , s_(n)), and transmits it to the receiver.

The receiver of the ciphertext substitutes the secret key (s₁, . . . , s_(n)) for the received ciphertext c(x₁, . . . , x_(n)), thereby calculating the plaintext polynomial e given by:

c(s ₁ , . . . ,s _(n))=e

After that, the receiver executes the decoding processing msg′=Dcd(e) based on the plaintext polynomial e, thereby performing decoding into the plaintext msg=msg′.

<Practical Arrangement of First Embodiment>

The first embodiment will be described in detail below.

FIG. 1 is a block diagram showing the arrangement of a symmetric encryption apparatus according to the first embodiment. FIG. 2 is a block diagram showing the arrangement of a symmetric decryption apparatus according to the first embodiment.

A symmetric encryption apparatus 100 includes a parameter storage unit 101, an input/output unit 102, and an encryption processing unit 103.

The parameter storage unit (storage unit) 101 is a memory readable by the encryption processing unit 103, and stores the secret key sk (symmetric key) formed from the plurality of elements (s₁, . . . , s_(n)) of the first polynomial ring S, and security parameters. The parameter storage unit 101 may store information of the commutative ring R and polynomial ring S. The parameter storage unit 101 may also store information of the encoding processing Ecd.

The input/output unit 102 accepts the input of the plaintext msg (plaintext information) of a document to be encrypted, and outputs the ciphertext c(x₁, . . . , x_(n)) calculated by the encryption processing unit 103. The input/output unit 102 constitutes a plaintext acceptance unit and an output unit.

The encryption processing unit 103 calculates the ciphertext c(x₁, . . . , x_(n)) based on the plaintext msg whose input has been accepted by the input/output unit 102 and the information stored in the parameter storage unit 101.

For example, the encryption processing unit 103 has functions (f103-1) to (f103-3) below.

(f103-1) A plaintext polynomial generation function of generating the plaintext polynomial e by embedding the plaintext msg whose input has been accepted in at least one of the terms of a polynomial in the subspace M of the first polynomial ring S.

Note that the plaintext polynomial generation function (f103-1) may have a function (f103-1-1) of additively dividing the plaintext msg into a plurality of pieces of partial information msg₁, . . . , msg_(i), . . . , msg_(m), and embedding the plurality of pieces of partial information msg₁, . . . , msg_(i), . . . , msg_(m) as the coefficients of the respective terms of the plaintext polynomial e. Note that m is a value that satisfies m≦dw−1 for the above-described degrees d and w.

(f103-2) A mask polynomial generation function of generating a mask polynomial g(x₁, . . . , x_(n)) having the secret key sk (symmetric key) as a solution based on the second commutative ring R defined over the first polynomial ring S.

(f103-3) A encryption function of generating the ciphertext c(x₁, . . . , x_(n)) using the plaintext polynomial e and the mask polynomial g(x₁, . . . , x_(n)).

The encryption processing unit 103 may have a function (f103-4) below.

(f103-4) A homomorphic calculation function of, when the plaintext polynomial generation function (f103-1), the mask polynomial generation function (f103-2), and the encryption function (f103-3) separately generate two ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) from two plaintext polynomials e⁽¹⁾ and e⁽²⁾, generating a new ciphertext c^((hom))(x₁, . . . , x_(n)) by homomorphic calculation processing of adding or multiplying the two ciphertexts.

When the two ciphertexts are added, the result of decrypting the new ciphertext c^((hom))(x₁, . . . , x_(n)) based on the secret key sk is equal to the result of adding the two plaintext polynomials e⁽¹⁾ and e⁽²⁾.

Alternatively, when the two ciphertexts are multiplied, the result of decrypting the new ciphertext c^((hom))(x₁, . . . , x_(n)) based on the secret key sk is equal to the result of multiplying the two plaintext polynomials e⁽¹⁾ and e⁽²⁾.

The encryption processing unit 103 constitutes a plaintext polynomial generation unit, a mask polynomial generation unit, and an encryption unit. The encryption processing unit 103 may also constitute a homomorphic calculation unit.

On the other hand, as shown in FIG. 2, a symmetric decryption apparatus 200 includes a parameter storage unit 201, an input/output unit 202, and a decryption processing unit 203.

The parameter storage unit (storage unit) 201 is a memory readable by the decryption processing unit 203, and stores the secret key sk (symmetric key) formed from the plurality of elements (s₁, . . . , s_(n)) of the polynomial ring S, and security parameters. The parameter storage unit 201 may store information of the commutative ring R and polynomial ring S. The parameter storage unit 201 may also store information of the decoding processing Dcd.

The input/output unit 202 accepts the input of the ciphertext c(x₁, . . . , x_(n)), and outputs the decryption result msg′. The input/output unit 202 constitutes a ciphertext acceptance unit and an output unit.

The ciphertext c(x₁, . . . , x_(n)) has been generated using the plaintext polynomial e and the mask polynomial g(x₁, . . . , x_(n)).

The plaintext polynomial e has been generated by embedding the plaintext msg in at least one of the terms of a polynomial in the subspace M of the first polynomial ring S. Note that the plaintext msg may be additively divided into a plurality of pieces of partial information, and the plurality of pieces of partial information may be embedded as coefficients in the respective terms of the plaintext polynomial e. In this case, a decryption function (f203-2) (to be described later) can extract, as a plurality of pieces of partial information, the coefficients of the respective terms of the plaintext polynomial e decrypted by a plaintext polynomial decryption function (f203-1), and calculate the total sum of the plurality of pieces of partial information, thereby performing decryption into the plaintext msg.

The mask polynomial g(x₁, . . . , x_(n)) has the secret key sk as a solution. The mask polynomial g(x₁, . . . , x_(n)) has been generated based on the second commutative ring R defined over the first polynomial ring S.

The decryption processing unit 203 decrypts the ciphertext c(x₁, . . . , x_(n)) based on the ciphertext c(x₁, . . . , x_(n)) whose input has been accepted by the input/output unit 202 and the information stored in the parameter storage unit 201, thereby obtaining the decryption result msg′.

For example, the decryption processing unit 203 has the following functions (f203-1) and (f203-2).

(f203-1) The plaintext polynomial decryption function of decrypting the ciphertext c(x₁, . . . , x_(n)) into the plaintext polynomial e based on the secret key sk in the parameter storage unit 201.

(f203-2) The decryption function of decrypting the decrypted plaintext polynomial e into the plaintext msg.

Note that a case in which the ciphertext whose input has been accepted has been generated by homomorphic calculation processing of adding or multiplying the two ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) separately generated from the two plaintext polynomials e⁽¹⁾ and e⁽²⁾ will be described.

When the two ciphertexts are added, the decryption result of the decryption function (f203-2) is equal to the result of adding the two plaintext polynomials e⁽¹⁾ and e⁽²⁾.

Alternatively, when the two ciphertexts are multiplied, the decryption result of the decryption function (f203-2) is equal to the result of multiplying the two plaintext polynomials e⁽¹⁾ and e⁽²⁾.

The decryption processing unit 203 constitutes a plaintext polynomial decryption unit and a decryption unit.

The operations of the symmetric encryption apparatus and symmetric decryption apparatus which have the above-described arrangements will be described with reference to flowcharts shown in FIGS. 3 and 4, respectively.

As shown in FIG. 3, in the symmetric encryption apparatus 100, the input/output unit 102 accepts the input of the plaintext msg (step ST1). The parameters (for example, S, R, sk, and the like) in the parameter storage unit 101 are read out by the encryption processing unit 103, as needed.

The encryption processing unit 103 executes encoding processing to embed the plaintext msg whose input has been accepted by the input/output unit 102 in each term of the polynomial in the subspace M of the polynomial ring S, thereby calculating the plaintext polynomial e=Ecd(msg) (step ST2).

The encryption processing unit 103 generates the mask polynomial g(x₁, . . . , x_(n)) having the secret key (s₁, . . . , s_(n)) as a solution based on the commutative ring R defined over the polynomial ring S. For example, the encryption processing unit 103 randomly selects the mask polynomial g(x₁, . . . , x_(n)) from the commutative ring R (steps ST3 to ST5). Note that the mask polynomial g(x₁, . . . , x_(n)) is added to the plaintext polynomial e, thereby concealing the plaintext polynomial e.

More specifically, for example, the encryption processing unit 103 randomly selects the polynomial f(x₁, . . . , x_(n)) from the commutative ring R (step ST3). The polynomial f(x₁, . . . , x_(n)) may be referred to as a random polynomial f(x₁, . . . , x_(n)).

The encryption processing unit 103 calculates the polynomial f(s₁, . . . , s_(n)) obtained by substituting the secret key sk for the variables x₁, . . . , x_(n) of the polynomial f(x₁, . . . , x_(n)) (step ST4), and sets the mask polynomial g(x₁, . . . , x_(n))=f(x₁, . . . , x_(n))−f(s₁, . . . , s_(n)) (step ST5).

Note that + represents addition defined by the commutative ring R, and − represents addition of an additive inverse.

The mask polynomial g(x₁, . . . , x_(n)) and polynomial f(x₁, . . . , x_(n)) may be selected from a subset of the commutative ring R instead of the commutative ring R.

Alternatively, the mask polynomial g(x₁, . . . , x_(n)) and polynomial f(x₁, . . . , x_(n)) may be selected depending on the date/time when encryption is processed, the secret key sk, or the plaintext msg, instead of being randomly selected. Steps ST3 to ST5 may be executed before the execution of step ST1.

The encryption processing unit 103 generates the ciphertext c(x₁, . . . , x_(n))=e+g(x₁, . . . , x_(n)) by adding the plaintext polynomial e and the mask polynomial g(x₁, . . . , x_(n)) (step ST6).

The symmetric encryption apparatus 100 outputs the ciphertext c(x₁, . . . , x_(n)) from the input/output unit 102 (step ST7).

The operation of the symmetric encryption apparatus 100 has been explained above. The operation of the symmetric decryption apparatus 200 will be described next.

In the symmetric decryption apparatus 200, as shown in FIG. 4, the input/output unit 202 accepts the input of the ciphertext c(x₁, . . . , x_(n)) (step ST11).

The decryption processing unit 203 decrypts the ciphertext c(x₁, . . . , x_(n)) into the plaintext polynomial e based on the secret key sk=(s₁, . . . , s_(n)) in the parameter storage unit 201. For example, the decryption processing unit 203 substitutes the secret key sk=(s₁, . . . , s_(n)) for the ciphertext c(x₁, . . . , x_(n)), and calculates the plaintext polynomial e (step ST12), as given by:

c(s ₁ , . . . ,s _(n))=e+g(s ₁ , . . . ,s)=e

The decryption processing unit 203 decrypts the decrypted plaintext polynomial e into the plaintext msg. That is, the decryption processing unit 203 decodes the plaintext polynomial e, and calculates the decryption result msg′=Dcd(e) (step ST13).

As described above, for example, when the polynomial ring is represented by S=A[t₁, . . . , t_(n)] and the encoding processing is represented by Ecd(msg)=e=Σmsg_(i)t_(i) where the plaintext msg=msg₁∥msg₂∥ . . . ∥msg_(n), the polynomial c(s₁, . . . , s_(n)) calculated in step ST12 is the plaintext polynomial e=Σmsg_(i)t_(i) with a variable t_(i).

In this case, according to the plaintext polynomial e=Σmsg_(i)t_(i), it is possible to perform decryption into the plaintext msg=msg′ by assigning the coefficient of the variable t_(i) to the bit string msg′_(i) of the plaintext, and setting the decryption result msg′=msg′₁∥msg′₂∥ . . . ∥msg′_(n).

Alternatively, when the polynomial ring is represented by S=F_(q)[t] and the encoding processing is represented by Ecd(msg)=e=Σmsg_(i)t^(i) where the plaintext msg=msg₁∥msg₂∥ . . . ∥msg_(m′), the polynomial c(s₁, . . . , s_(n)) calculated in step ST12 is the plaintext polynomial e=Σmsg_(i)t^(i) with the variable t.

In this case, according to the plaintext polynomial e=Σmsg_(i)t^(i), it is possible to perform decryption into the plaintext msg=msg′ by assigning the coefficient of the variable t^(i) to the bit string msg′_(i) of the plaintext, and setting the decryption result msg′=msg′₁∥msg′₂∥ . . . ∥msg′_(n).

When the polynomial ring is represented by S=F_(q)[t] and the encoding processing is represented by Ecd(msg)=e=Σmsg_(i)t^(i) where the plaintext msg=Σmsg_(i)l_(i), the polynomial c(s₁, . . . , s_(n)) calculated in step ST12 is the plaintext polynomial e=Σmsg_(i)t^(i) with the variable t.

In this case, according to the plaintext polynomial e=Σmsg_(i)t^(i), it is possible to perform decryption into the plaintext msg=msg′ by assigning the coefficient of the variable t^(i) to the bit string msg′_(i), and setting the decryption result msg′=Σmsg_(i)l_(i).

Finally, the symmetric decryption apparatus 200 outputs the plaintext msg=msg′ from the input/output unit 202 (step ST14).

According to this embodiment, as described above, with the arrangement in which the ciphertext c(x₁, . . . , x_(n)) is generated by processing of generating the plaintext polynomial e by embedding the plaintext msg in each term of the polynomial in the subspace M of the polynomial ring S, and adding the plaintext polynomial e and the mask polynomial g(x₁, . . . , x_(n)) having the symmetric key (sk) as a solution, it is possible to increase the parallelism and improve the calculation efficiency. Note that in processing of adding polynomials, processing of adding the coefficients of similar terms can be executed in parallel. Therefore, in this embodiment, it is possible to increase the parallelism in processing of adding the plaintext polynomial e and the mask polynomial g(x₁, . . . , x_(n)). Furthermore, according to this embodiment, it is also possible to increase the parallelism from the viewpoint that processing of embedding the plaintext msg in each term of the polynomial can be executed in parallel.

According to this embodiment, with the arrangement in which when the input of the thus generated ciphertext c(x₁, . . . , x_(n)) is accepted, the ciphertext c(x₁, . . . , x_(n)) is decrypted into the plaintext polynomial e based on the symmetric key (sk), and the decrypted plaintext polynomial e is decrypted into the plaintext msg, it is possible to increase the parallelism and improve the calculation efficiency. Note that in processing of decrypting the ciphertext c(x₁, . . . , x_(n)) into the plaintext polynomial e based on the symmetric key (sk), for example, processing of performing decoding into part of the plaintext msg for each term of the polynomial, for example, processing of performing decoding into coefficients for each set of similar terms can be executed in parallel. According to this embodiment, therefore, it is possible to increase the parallelism in processing of decrypting the ciphertext c(x₁, . . . , x_(n)) into the plaintext polynomial e. Furthermore, according to this embodiment, it is possible to increase the parallelism from the viewpoint that processing of decrypting each term of the plaintext polynomial e into part of the plaintext msg can be executed in parallel.

The symmetric encryption apparatus 100 performs the encoding processing Ecd to associate the plaintext msg with a commutative ring having an element expressed by the sum of two or more bases. Therefore, it is possible to embed a multi precision plaintext in one ciphertext by embedding plaintext information in two or more bases of an element of M. It is thus possible to encrypt a plaintext with a size larger than the processing unit of a CPU without performing data processing with multi precision.

As the symmetric encryption scheme with full homomorphism, there is known a technique described in Michal Hojsik, Veronika Pulpanova, “A Fully Homomorphic Cryptosystem with Approximate Perfect Secrecy”, CT-RSA 2013, pp. 375-388, LNCS 7779, Springer-Verlag (to be referred to as non-patent literature 1 hereinafter).

The technique described in non-patent literature 1, however, can embed only a single plaintext in one ciphertext since an integer value of F_(p)={0, 1, . . . , p−1} is calculated in decryption. In the technique described in non-patent literature 1, therefore, it is necessary to execute data processing with multi precision to perform encryption processing for a plaintext with a size larger than the processing unit of the CPU. Furthermore, in the technique described in non-patent literature 1, it is necessary to calculate a plurality of ciphertexts to encrypt a plurality of plaintexts.

To the contrary, according to this embodiment, with the arrangement in which plaintext information is embedded in each term of a polynomial, it is possible to embed a multi precision plaintext or a plurality of plaintexts in one ciphertext.

<Modification 1 of First Embodiment: Extension Field>

In the first embodiment, the arrangement of the symmetric encryption apparatus in which M is a subset of the polynomial ring S has been explained. In Modification 1, a case in which the subset M of the polynomial ring S indicates a subset of a field L will be described. Assume that an extension field obtained by adjoining a to a field F_(p) or K will be exemplified as the field L. However, an extension field obtained by adjoining α₁, . . . , α_(m′) to the field F_(p) or K may be used. The former corresponds to the polynomial ring S=A[t] in the first embodiment, and the latter corresponds to the polynomial ring S=A[t₁, . . . , t_(m′)] in the first embodiment.

The arrangement of the symmetric encryption apparatus for implementing Modification 1 is the same as that of the symmetric encryption apparatus 100 described above.

Notation for explaining Modification 1 will be described next.

In the first embodiment, S represents the polynomial ring with the variable t_(i). In Modification 1, S∪L represents a sub field of an extension field of degree m, L={Σ_(0≦i≦m-1)c_(i)α^(i)|C_(i)εF_(p) where α represents the root of an irreducible polynomial of degree m with F_(p) as a coefficient and m≧2}, of the field F_(p)={0, 1, . . . , p−1}. Alternatively, the sub field S may be an extension field of an arbitrary field K different from the field F_(p).

The commutative ring R=S[x₁, . . . , x_(n)] is a polynomial ring having the elements of the sub field S as coefficients.

The secret key sk is, for example, a set sk=(s₁, . . . , s_(m)) of the elements of the sub field S where s_(i)=Σ_(0≦j≦m-1)c_(j)α^(i) is an element of the sub field S.

The encoding processing assigns the plaintext msg to an element of the subset M of the sub field S. The above-described base corresponds to each c_(i)α^(i) of Σc_(i)α^(i) as an element of the subset M.

For example, when the secret key is represented by sk=(s₁, . . . , s_(n))εS^(n) and the commutative ring is represented by R=S[x₁, . . . , x_(n)], the encoding processing Ecd may divide the plaintext msg into m bit strings msg₁∥msg₂∥ . . . ∥msg_(m) (where ∥ represents bit concatenation) by representing the plaintext by bits, thereby outputting a plaintext polynomial e=Σmsg_(i)α^(i-1).

At this time, similarly to the first embodiment, the decoding processing Dcd(sk, e) can concatenate the m bit strings msg₁, msg₂, . . . , msg_(m), thereby performing decoding into the plaintext msg, as given by:

msg ₁ ∥msg ₂ ∥ . . . ∥msg _(m) =msg

Alternatively, the plaintext msg may undergo l-adic expansion (for example, l=2¹⁶=65536), and each digit may be associated with the bit string msg_(i). At this time, the decoding processing performs decoding into the plaintext msg by converting a value obtained by performing l-adic expansion into a predetermined format such as a binary or decimal number.

Furthermore, encoding processing may stochastically be calculated for the plaintext msg by setting some of the bit strings msg_(i) to random integers rnd_(i).

At this time, the decoding processing extracts the bit strings msg_(i) except for the random integers rnd_(i), and performs decoding into the plaintext msg.

An index i indicating a position where the random integer rnd_(i) is used instead of the bit string msg_(i) (that is, an actual index j of a bit string msg_(j) in which the plaintext msg is embedded) may be a public parameter in the system, or secret information between communication parties sharing a symmetric key.

The processes of the symmetric encryption apparatus and symmetric decryption apparatus according to Modification 1 are the same as those of the symmetric encryption apparatus 100 and symmetric decryption apparatus 200 described above. More specifically, the processing of each apparatus is obtained by substituting α^(i) _(j) for t^(i) _(j) in the first embodiment and a detailed description thereof will be omitted.

According to Modification 1, as described above, even if the subset M of the polynomial S is a subset of the field L, it is possible to obtain the same effects by implementing the first embodiment in the same manner.

<Modification 2 of First Embodiment: Homomorphic Calculation>

In the first embodiment and Modification 1, the arrangement of the symmetric encryption apparatus has been explained. In the first embodiment and Modification 1, when encoding satisfies Ecd(msg⁽¹⁾)+Ecd(msg⁽²⁾)=Ecd(msg⁽¹⁾+msg⁽²⁾) or Ecd(msg⁽¹⁾)*Ecd(msg⁽²⁾)=Ecd(msg⁽¹⁾)*msg⁽²⁾), the symmetric encryption apparatus with homomorphism can be configured.

As encoding satisfying such characteristic, there is provided a method of dividing the plaintext msg into the bit strings msg₁∥msg₂∥ . . . ∥msg_(m) to obtain Ecd(msg)=e=Σmsg_(i)x_(n) ^(i-1) or Ecd(msg)=e=Σmsg_(i)α^(i-1), as described above.

The plaintext msg may undergo l-adic expansion as Σmsg_((1)i)l^(i) to obtain the plaintext polynomial e=Ecd(msg)=Σmsg_((1)i)x_(i).

Alternatively, an encoding result may stochastically be calculated for the plaintext msg by setting some of the above-described bit strings msg_(i) to random integers rnd_(i), thereby obtaining Ecd(msg)=e=Σ_(1≦i)rnd_(i)x_(n) ^(i-1)+msg or Ecd(msg)=e=Σ_(1≦i)rnd_(i)α^(i-1)+msg.

The arrangement of a symmetric encryption apparatus according to Modification 2 is the same as that of the above-described symmetric encryption apparatus 100, and only an encoding method is different. Homomorphic calculation processing executed by the symmetric encryption apparatus of Modification 2 will be described below.

FIG. 5 is a block diagram showing the arrangement of a homomorphic calculation apparatus used in Modification 2 of the first embodiment. A homomorphic calculation apparatus 300 includes a parameter storage unit 301, an input/output unit 302, and a homomorphic calculation unit 303.

The parameter storage unit 301 stores security parameters. The parameter storage unit 301 may store information of the commutative ring R and polynomial ring S. The parameter storage unit 301 may also store information of the encoding processing Ecd.

The input/output unit 302 accepts the input of the two ciphertexts c⁽¹⁾(x₂, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) from the symmetric encryption apparatus 100, and outputs the homomorphic calculation result c^((hom))(x₁, . . . , x_(n)) to the symmetric encryption apparatus 100.

The homomorphic calculation unit 303 calculates the homomorphic calculation result c^((hom))(x₁, . . . , x_(n)) based on the ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) accepted by the input/output unit 302 and the information stored in the parameter storage unit 301.

Note that the above-described symmetric encryption apparatus 100 may further include the function of the homomorphic calculation apparatus 300.

The homomorphic calculation processing according to Modification 2 will be described with reference to FIG. 6.

The input/output unit 302 of the homomorphic calculation apparatus 300 accepts the input of the two ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) (step ST21). Note that the first ciphertext c⁽¹⁾(x₁, . . . , x_(n)) has been generated from the first plaintext polynomial e⁽¹⁾. The second ciphertext c⁽²⁾(x₁, . . . , x_(n)) has been generated from the second plaintext polynomial e⁽²⁾.

The homomorphic calculation apparatus 300 decides the type of calculation such as addition or multiplication for the two ciphertexts (step ST22). The calculation type may be decided in advance for the homomorphic calculation apparatus 300 or externally designated for the homomorphic calculation apparatus 300 when accepting the input of the ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)).

When adding the two ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)), the homomorphic calculation apparatus 300 generates a new ciphertext c^((Add))(x₁, . . . , x_(n)) by homomorphic calculation processing of adding the two ciphertexts (step ST23A), as given by:

$\begin{matrix} {{c^{({Mul})}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)} = {{c^{(1)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}{{\bigstar c}^{(2)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}}} \\ {= {{e^{(1)}\bigstar \; e^{(2)}} + {{g^{(1)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}{g^{(2)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}} +}} \\ {{{{g^{(1)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}e^{(2)}} + {{g^{(2)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}e^{(1)}}}} \end{matrix}$

When multiplying the two ciphertexts, the homomorphic calculation apparatus 300 generates a new ciphertext c^((Mul))(x₁, . . . , x_(n)) by homomorphic calculation processing of multiplying the two ciphertexts (step ST23M), as given by:

$\begin{matrix} {{c^{({Add})}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)} = {{c^{(1)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)} + {c^{(2)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}}} \\ {= {e^{(1)} + e^{(2)} + {g^{(1)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)} + {g^{(2)}\left( {x_{1},\ldots \mspace{14mu},x_{n}} \right)}}} \end{matrix}$

The homomorphic calculation apparatus 300 outputs the homomorphic calculation result obtained in step ST23A or ST23M from the input/output unit 302 to the symmetric encryption apparatus 100 (step ST24).

After confirming that the ciphertext having undergone homomorphic calculation corresponds to the plaintext having undergone intended homomorphic calculation, the symmetric encryption apparatus 100 transmits the ciphertext to the symmetric decryption apparatus 200. Note that the symmetric decryption apparatus 200 may confirm this homomorphic calculation.

As for addition, the result of decrypting the new ciphertext c^((Add))(x₁, . . . , x_(n)) based on the secret key sk(s₁, . . . , s_(n)) is equal to the result of adding the two plaintext polynomials e⁽¹⁾ and e⁽²⁾, as given by:

$\begin{matrix} {{c^{({Add})}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)} = {{c^{(1)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)} + {c^{(2)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}}} \\ {= {e^{(1)} + e^{(2)} + {g^{(1)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)} + {g^{(2)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}}} \\ {= {e^{(1)} + e^{(2)}}} \end{matrix}$

That is, when the symmetric decryption apparatus 200 substitutes the secret key sk for the homomorphic calculation result c^((Add))(x₁, . . . , x_(n)), the sum (e⁽¹⁾+e⁽²⁾) of the plaintext polynomials is correctly decrypted.

As for multiplication, the result of decrypting the new ciphertext c^((Mul))(x₁, . . . , x_(n)) based on the secret key sk=(s₁, . . . , s_(n)) is equal to the result of multiplying the two plaintext polynomials e⁽¹⁾ and e⁽²⁾, as given by:

$\begin{matrix} {{c^{({Mul})}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)} = {{c^{(1)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}{{\bigstar c}^{(2)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}}} \\ {= {{e^{(1)}\bigstar \; e^{(2)}} + {{g^{(1)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}{g^{(2)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}} +}} \\ {{{{g^{(1)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}e^{(2)}} + {{g^{(2)}\left( {s_{1},\ldots \mspace{14mu},s_{n}} \right)}e^{(1)}}}} \\ {= {e^{(1)}\bigstar \; e^{(2)}}} \end{matrix}$

Therefore, when the symmetric decryption apparatus 200 substitutes the secret key sk for the homomorphic calculation result c^((Mul))(x₁, . . . , x_(n)), the product (e⁽¹⁾*e⁽²⁾) of the plaintext polynomials is correctly decrypted.

According to Modification 2, as described above, when the two ciphertexts c⁽¹⁾(x₁, . . . , x_(n)) and c⁽²⁾(x₁, . . . , x_(n)) are separately generated from the two plaintext polynomials e⁽¹⁾ and e⁽²⁾, homomorphic calculation processing of adding or multiplying the two ciphertexts is executed to generate a new ciphertext.

As for addition, since the result of decrypting the new ciphertext based on the symmetric key is equal to the result of adding the two plaintext polynomials, it is possible to implement additive homomorphic calculation.

As for multiplication, since the result of decrypting the new ciphertext based on the symmetric key is equal to the result of multiplying the two plaintext polynomials, it is possible to implement multiplicative homomorphic calculation.

According to Modification 2, since additive and multiplicative homomorphic calculations can be implemented, it is possible to implement fully homomorphic calculation in addition to the effects of the first embodiment.

(Other Modifications of First Embodiment: Encoding Processing Ecd)

In the above-described first embodiment and Modifications 1 and 2, encoding processes Ecd to be described in (1) to (7) below can be used.

(1) Encoding Processing in which Plaintext Msg is Divided into Bit Strings after 1-Adic Expansion

A case in which the plaintext msg is represented by bit strings msg₁∥ . . . ∥msg_(m) or l-adic expansion msg=Σmsg_(i)l^(i-1) and encoding processing is indicated by Ecd(msg)=e=Σmsg_(i)t^(i-1) or Ecd(msg)=e=Σmsg_(i)α^(i-1) has been explained. Note that m is a value that satisfies m≦dw−1 for the above-described degrees d and w.

The symmetric encryption scheme using the encoding processing Ecd satisfies homomorphism with respect to addition and multiplication.

(2) Encoding Processing in which No Plaintext Msg is Divided

Without dividing the plaintext msg, the plaintext msg may be set as one coefficient c₀ (c₀=msg), random numbers may be set as other m−1 coefficients c₁, . . . , c_(m-1), Ecd(msg)=e=Σc_(i)t^(i) or Ecd(msg)=e=Σc_(i)α^(i) may be set as the encoding processing. Note that m is a value that satisfies m≦dw−1 for the above-described degrees d and w.

When such encoding processing Ecd is used, the symmetric encryption scheme satisfies homomorphism with respect to addition and multiplication.

(3) Encoding Processing in which Plaintext Msg is Additively Divided

The encoding processing Ecd may be executed so as to additively divide the plaintext msg into the plurality of pieces of partial information msg₁, . . . , msg_(i), . . . , msg_(m), and embed the plurality of pieces of partial information msg₁, . . . , msg_(i), . . . , msg_(m) as the coefficients of the respective terms of the plaintext polynomial e. Note that m is a value that satisfies m≦dw−1 for the above-described degrees d and w.

For example, the plaintext msg is additively divided like msg=Σmsg_(i) or msg=Σmsg_(i) mod p (p is an integer), and the encoding processing may be indicated by Ecd(msg)=e=Σmsg_(i)t^(i-1) or Ecd(msg)=e=Σmsg_(i)α^(i-1). Note that the number of msg_(i) obtained by additively dividing the plaintext msg is equal to or smaller than (dw−1) for the above-described degrees d and w.

The corresponding decoding processing Dcd may be executed so as to perform decryption into the plaintext msg by extracting the coefficients of the respective terms of the decrypted plaintext polynomial e as the plurality of pieces of partial information, and calculating the total sum of the plurality of pieces of partial information.

For example, the plaintext polynomial e=Σmsg′_(i)t^(i-1) or the plaintext polynomial e=Σmsg′_(i)α^(i-1) is decrypted into the plaintext msg=msg′ according to the decryption result msg′=Σmsg′_(i) or the like. In the case of (3), only if all the pieces of partial information msg′_(i) are correct, it is possible to perform decryption into the plaintext msg by calculating the total sum of the pieces of partial information msg′_(i), unlike the case of (1). That is, in the case of (3), it is possible to obtain the same effects as in the case in which the pieces of partial information msg_(i) of the plaintext msg are secretly shared, unlike the case of (1).

When such encoding processing Ecd is used, the symmetric encryption scheme satisfies homomorphism with respect to addition.

(4) Encoding Processing in which Plaintext Msg Serves as Solution

In addition to additively dividing the plaintext msg, the plaintext msg may undergo the encoding processing Ecd so that the plaintext msg serves as the solution of an equation derived from the coefficient c_(i) of the polynomial e=Σc_(i)t^(i-1) or e=Σc_(i)α^(i-1).

For example, in consideration of the simultaneous linear equations with two unknowns using variables x and y, the encoding processing Ecd may be performed by determining the coefficients c₀ to c₅ so that the solution of c₀x+c₁y=c2 and c₃x+c₄y=c₅ is x=msg.

Alternatively, in consideration of a quadratic equation using a variable x, the encoding processing Ecd may be performed by determining the coefficients c₀ to c₂ so that the solution of c₀+c₁x+c₂x²=0 is x=msg. In this case, since two solutions are derived from the equation, the equation may have the plaintext msg as a multiple root so as to maintain unique decodability.

Alternatively, the coefficients c₀ to c₂ may be determined so that the other solution is a value larger (or smaller) than the plaintext msg, and a smaller (or larger) value may be selected as the plaintext msg after solving the quadratic equation.

(5) Encoding Processing into Commutative Ring

A space where the plaintext msg is encoded is not limited to the subspace M of S, and a subspace of the polynomial ring S[x₁, . . . , x_(n)] may be set. At this time, an encoding result is the polynomial e(x₁, . . . , x_(n)) having the variables x₁, . . . , x_(n).

For example, the secret key sk=(s₁, . . . , s_(n)) and deg_(t) s_(i)>Σ_(i>j≧0) deg_(t) s_(j) can be set, and the encoding processing can be indicated by Ecd(msg)=msg_(1, 1, . . . , 1)x₁x₂ . . . x_(n)+msg_(0, 1, . . . , 1)x₂ . . . x_(n)+ . . . +msg_(0, 0, . . . , 1)x_(n)+msg_(0, 0, . . . , 0).

Note that deg_(t) s_(i) represents a degree with respect to t of the polynomial s_(i).

Assume that the plaintext msg is indicated by msg=msg_(1, 1, . . . , 1)∥msg_(0, 1, . . . , 1)∥ . . . ∥msg_(0, 0 . . . 0).

In the decoding processing Dcd of the decryption processing, the secret key sk is substituted for the ciphertext c(x₁, . . . , x_(n)), and the plaintext polynomial e(s₁, . . . , s_(n)) is calculated, as given by:

c(s ₁ , . . . ,s _(n))=e(s ₁ , . . . ,s _(n))

The bit string msg_(1, 1, . . . , 1) is decoded from the coefficient of the highest degree with respect to t of the obtained plaintext polynomial e(s₁, . . . , s_(n)).

The bit string msg_(0, 1, . . . , 1) is decoded from the coefficient of the highest degree of the plaintext polynomial e(s₁, . . . , s_(n))−msg_(1, 1, . . . , 1)s₁s₂ . . . s_(n).

Similarly, it is possible to subsequently decode the respective bit strings msg_(0, 0, . . . , 1), . . . , msg_(0, 0, . . . , 0), thereby decoding the respective bit strings into the plaintext msg=msg_(1, 1, . . . , 1)∥msg_(0, 1, . . . , 1)∥ . . . ∥msg_(0, 0, . . . , 0).

(6) Encoding Processing for Plural Types of Plaintexts

The encoding processing Ecd may convert not only a single plaintext msg but also plural types of plaintexts msg⁽¹⁾, . . . , msg^((m)) such as a height and weight into elements in the subspace M.

In this case, the encoding processing Ecd may be indicated by, for example, Ecd(msg⁽¹⁾, . . . , msg^((m)))=e=Σmsg^((i))t^(i-1) or Ecd(msg⁽¹⁾, . . . , msg^((m)))=e=Σmsg^((i))α^(i-1). Note that the number of msg^((i)) to be encoded is equal to or smaller than (dw−1) for the above-described degrees d and w.

When the encoding processing Ecd is used, the symmetric encryption scheme satisfies homomorphism with respect to addition for each type of plaintext msg (for example, each msg when a height is assigned to msg⁽¹⁾ and a weight is assigned to msg⁽²⁾).

Furthermore, as described above, the plaintext msg^((i)) may be divided into bit strings msg^((i)) ₁∥ . . . ∥msg^((i)) _(m), and the encoding processing may be indicated by Ecd(msg⁽¹⁾), . . . , msg^((m)))=e=Σmsg^((i)) _(j)t^(m′i+j-1) or Ecd(msg⁽¹⁾, . . . , msg^((m)))=e=Σmsg^((i)) _(j)α^(m*i+j-1).

When the symmetric encryption scheme is required to have homomorphism with respect to multiplication, information indicating ciphertexts based on which a ciphertext multiplication result is obtained may leak by factorizing the ciphertext multiplication result.

To solve this problem, an element in the subspace M may be added to the ciphertext multiplication result to the extent that the homomorphism of multiplication does not deteriorate.

For example, when the subspace M is a subset of the polynomial ring S=A[t], the encoding processing Ecd(msg)=e=Σc_(i)t^(i) of setting the coefficient c₀=msg and setting random numbers in other coefficients c₁, . . . , c_(m-1) is assumed to be used.

In this case, of the ciphertext multiplication result, a term which influences the homomorphism of multiplication is a constant term (t⁰), and terms t, . . . , t^(2(m-1)) have no influence on the homomorphism of multiplication.

Therefore, a random polynomial Σc_(i)t^(i) may be generated by setting the coefficient c0=0 and randomly setting the coefficients c₁, . . . , c_(2(m-1)), and then added to the ciphertext multiplication result. The random polynomial Σc_(i)t^(i) may be called a mask polynomial.

(7) Encoding Processing for Updating Symmetric Key

The encoding processing Ecd converts the plaintext msg into an element (polynomial) of the subset M of the polynomial ring S. Instead of the above-described msg_(i) and rnd_(i), the element may be used as information ks_(i) for updating the symmetric key. The transmitter and receiver update a symmetric key sk_(j) based on ks_(i) according to a predetermined procedure.

The method of encoding processing is not limited to those described in (1) to (7), and a combination of two or more of the methods may be used.

In the above-described first embodiment and modifications, encryption processing is performed according to c(x₁, . . . , x_(n))=g(x₁, . . . , x_(n))+e using the mask polynomial g(x₁, . . . , x_(n)) having the secret key sk as a solution. At this time, encryption processing may be calculated as c(x₁, . . . , x_(n))=[g(x₁, . . . , x_(n))+D]*e using a reversible element (for example, D=1) in the subspace M where “*” represents multiplication in R. In this case, the secret key sk may be input to the ciphertext c(x₁, . . . , x_(n)) to calculate c(s₁, . . . , s_(n))=[g(s₁, . . . , s_(n))+D]*e=D*e, thereby calculating e by dividing D*e by D.

<Overview of Second Embodiment>

The overview of the second embodiment will be described.

In the first embodiment, the arrangement of the symmetric encryption apparatus using the elements of the commutative rings R and S has been explained.

In the second embodiment, an algebraic surface polynomial X(x, y) and its section (u_(x)(t), u_(y)(t)) are used as the mask polynomial g(x₁, . . . , x_(n)) and the secret key sk=(s₁, . . . , s_(n)) in the first embodiment. The mask polynomial g(x₁, . . . , x_(n)) is an algebraic surface polynomial X(x, y) representing an algebraic surface defined over the polynomial ring S. The algebraic surface is a zero set represented by the algebraic surface polynomial X(x, y) having two variables x and y, and a curve obtained by parameterizing x and y by t exists. The secret key (symmetric key) sk is a section polynomial (u_(x)(t), u_(y)(t)) of degree d representing the curve.

More specifically, F_(q)={0, 1, 2, . . . , q−1} represents a finite field of q elements. A space in which a one-variable polynomial with a variable t exists and which is defined over the finite field F_(q) of q elements is represented by F_(q)[t].

The algebraic surface over the space F_(q)[t]={Σc_(i)t^(i)|c_(i)εF_(q)} is a zero set represented by a two-variable polynomial X(x, y)ε(F_(q)[t]) [x, y] of degree w with respect to x and y. An algebraic curve (u_(x)(t), u_(y)(t))ε(F_(q)[t])² satisfying X(u_(x)(t), u_(y)(t))=0 is called the section of the algebraic surface polynomial X(x, y)=0. Note that u_(x)(t) and u_(y)(t) represent polynomials obtained by parameterizing x and y by t, respectively.

When the algebraic curve (u_(x)(t), u_(y)(t)) is given, it is easy to configure the algebraic surface polynomial X(x, y)=0 having the algebraic curve (u_(x)(t), u_(y)(t)) as a section. However, there is unknown a method of, when the algebraic surface polynomial X(x, y)=0 is given, obtaining the section (u_(x)(t), u_(y)(t)) of the algebraic surface polynomial X(x, y)=0, except for specific X(x, y). In the second embodiment, the section of the algebraic surface is used as a secret key sk for the symmetric encryption scheme.

In notation according to the second embodiment, it can be considered that the space F_(q)[t], the space (F_(q)[t]) [x, y], the algebraic surface polynomial X(x, y), the ciphertext c(x, y), and the section (u_(x)(t), u_(y)(t)) are set as the polynomial ring S, the commutative ring R, the mask polynomial g (x₁, . . . , x_(n)), the ciphertext (x₁, . . . , x_(n)), and the secret key sk in the first embodiment. Note that the field also serves as a ring, the finite field F_(q) of q elements includes the polynomial ring S and the commutative ring R.

Alternatively, in notation according to the second embodiment, a space F_(q)[x, y, t], algebraic surface polynomial X(x, y, t)εF_(q)[x, y, t], and ciphertext c(x, y, t)εF_(q)[x, y, t] can be regarded as the commutative ring R, the algebraic surface polynomial X(x, y)ε(F_(q)[t])[x, y], and ciphertext c(x₁, . . . , x_(n))ε(F_(q)[t]) [x, y] in the first embodiment.

Unless misunderstood, the former notation will be used below.

The finite field F_(q) of q elements and the order q may be public parameters in a system, or secret information between communication parties sharing a symmetric key.

Notation for explaining the second embodiment will be described in detail.

The secret key sk is formed from two elements (u_(x)(t), u_(y)(t)) of F_(q)[t].

In the second embodiment, a plaintext msg is encoded to an element of a subset M of F_(q)[t] by encoding processing Ecd. The encoding processing from the plaintext msg to an element e of the subset M is represented by e=Ecd(msg).

On the other hand, decoding processing from the element e of the subset M to a decoding result msg′ is represented by msg′=Dcd(e).

The encoding processing Ecd or decoding processing Dcd may accept the secret key sk as an input in addition to the plaintext msg or element e, thereby calculating e=Ecd(sk, msg) or msg′=Dcd(sk, e). The encoding processing Ecd and decoding processing Dcd are designed to obtain the plaintext msg=Dcd(Ecd(msg)) (the secret key sk is added as an input to the encoding processing Ecd and decoding processing Dcd, as needed).

For example, the encoding processing Ecd may divide the plaintext msg into n bit strings msg₁∥msg₂∥ . . . ∥msg_(n) (where ∥ represents bit concatenation) by representing the plaintext by bits, thereby outputting a plaintext polynomial e=Σmsg_(i)t^(i-1). Note that n is a value that satisfies n≦dw−1 for the above-described degrees d and w. In this case, the decoding processing Dcd(sk, e) can extract n bit strings msg₁∥msg₂∥ . . . ∥msg_(n) from the plaintext polynomial e, thereby performing decoding into the plaintext msg=msg₁∥msg₂∥ . . . ∥msg_(n).

Alternatively, the plaintext msg may undergo l-adic expansion (for example, l=2¹⁶=65536), and each digit may be associated with each bit string msg_(i). At this time, decoding processing performs decoding into the plaintext msg by converting a value obtained by performing l-adic expansion into a predetermined format such as a binary or decimal number.

Although a case in which encoding processing is certainly calculated for the plaintext msg has been described above, encoding processing may stochastically be calculated for the plaintext msg by setting some of the bit strings msg_(i) to random integers rnd_(i). At this time, the decoding processing extracts each bit string msg_(i) except for the random integers rnd_(i), and performs decoding into the plaintext msg.

The encoding processing Ecd and decoding processing Dcd may be public parameters in the system, or secret information between communication parties sharing a symmetric key.

<Practical Arrangement of Second Embodiment>

The second embodiment will be described in detail below.

FIG. 7 is a block diagram showing the arrangement of a symmetric encryption apparatus according to the second embodiment. FIG. 8 is a block diagram showing the arrangement of a symmetric decryption apparatus according to the second embodiment.

A symmetric encryption apparatus 400 includes a parameter storage unit 401, an input/output unit 402, and an encryption processing unit 403.

The parameter storage unit 401 stores security parameters in addition to the above-described secret key sk. The parameter storage unit 401 may store information of the space F_(q)[t] and the space (F_(q)[t]) [x, y]. The parameter storage unit 401 may also store information of the encoding processing Ecd.

The input/output unit 402 accepts the input of the plaintext msg, and outputs the ciphertext c(x, y) calculated by the encryption processing unit 403.

The encryption processing unit 403 calculates the ciphertext c(x, y) based on the plaintext msg whose input has been accepted by the input/output unit 402 and the information stored in the parameter storage unit 401.

On the other hand, as shown in FIG. 8, a symmetric decryption apparatus 500 includes a parameter storage unit 501, an input/output unit 502, and a decryption processing unit 503.

The parameter storage unit 501 stores security parameters in addition to the secret key sk. The parameter storage unit 501 may store information of the space F_(q)[t] and the space (F_(q)[t])[x, y]. The parameter storage unit 501 may also store information of the decoding processing Dcd.

The input/output unit 502 accepts the ciphertext c(x, y) as an input, and outputs the plaintext msg=msg′.

The decryption processing unit 503 decrypts the ciphertext c(x, y) based on the ciphertext c(x, y) accepted by the input/output unit 502 and the information stored in the parameter storage unit 501, thereby obtaining the plaintext msg=msg′ as the decryption result msg′.

The operations of the symmetric encryption apparatus and symmetric decryption apparatus which have the above arrangements will be described with reference to flowcharts shown in FIGS. 9 and 10, respectively.

As shown in FIG. 9, in the symmetric encryption apparatus 400, the input/output unit 402 accepts the input of the plaintext msg (step ST31). The parameters in the parameter storage unit 401 are read out by the encryption processing unit 403, as needed. The parameters are, for example, the section (u_(x)(t), u_(y)(t)) and the space (F_(q)[t]) [x, y].

The encryption processing unit 403 executes encoding processing to embed the plaintext msg in each term of the polynomial in the subspace M of the space F_(q)[t], thereby calculating the plaintext polynomial e=Ecd(msg) (step ST32).

The encryption processing unit 403 generates the algebraic surface polynomial X(x, y) having the section polynomial (u_(x)(t), u_(y)(t)) as a solution based on the space (F_(q)[t])[x, y] defined over the space F_(q)[t]. For example, the encryption processing unit 403 randomly selects the algebraic surface polynomial X(x, y) from the space (F_(q)[t])[x, y](steps ST33 to ST35). Note that the algebraic surface polynomial X(x, y) is added to the plaintext polynomial e, thereby concealing the plaintext polynomial e.

More specifically, the encryption processing unit 403 randomly selects the polynomial f(x, y) from the space (F_(q)[t])[x, y](step ST33). The polynomial f(x, y) may be referred to as a random polynomial f(x, y).

The encryption processing unit 403 calculates the polynomial f(u_(x)(t), u_(y)(t)) obtained by substituting the secret key (u_(x)(t), u_(y)(t)) for the two variables x and y of the polynomial f(x, y) (step ST34), and sets the algebraic surface polynomial X(x, y)=f(x, y)−f(u_(x)(t), u_(y)(t)) (step ST35).

Note that the algebraic surface polynomial X(x, y) and polynomial f(x, y) may be selected from a subset of the space (F_(q)[t])[x, y] instead of the space (F_(q)[t])[x, y].

Alternatively, the algebraic surface polynomial X(x, y) and polynomial f(x, y) may be selected depending on the date/time when encryption is processed, the secret key sk, or the plaintext, instead of being randomly selected. Steps ST33 to ST35 may be executed before the execution of step ST31.

The encryption processing unit 403 calculates the ciphertext c(x, y)=e+X(x, y) by adding the plaintext polynomial e and the algebraic surface polynomial X(x, y) (step ST36).

The symmetric encryption apparatus 400 outputs the ciphertext c(x, y) from the input/output unit 402 (step ST37).

The operation of the symmetric encryption apparatus 400 has been explained above. The operation of the symmetric decryption apparatus 500 will be described next.

In the symmetric decryption apparatus 500, as shown in FIG. 10, the input/output unit 502 accepts the input of the ciphertext c(x, y) (step ST41).

The decryption processing unit 503 decrypts the ciphertext c(x, y) into the plaintext polynomial e based on the secret key sk=(u_(x)(t), u_(y)(t)) in the parameter storage unit 501. For example, the decryption processing unit 503 substitutes the secret key sk=(u_(x)(t), u_(x)(t)) for the ciphertext c(x, y), and calculates the plaintext polynomial e (step ST42), as given by:

$\begin{matrix} {{c\left( {{u_{x}(t)},{u_{y}(t)}} \right)} = {e + {X\left( {{u_{x}(t)},{u_{y}(t)}} \right)}}} \\ {= e} \end{matrix}$

The decryption processing unit 503 decrypts the decrypted plaintext polynomial e into the plaintext msg.

That is, the decryption processing unit 503 decodes the plaintext polynomial e, and calculates the decryption result msg′=Dcd(e) (step ST43).

As described above, for example, when Ecd(msg)=e=Σmsg_(i)t^(i-1) where msg=msg₁∥msg₂∥ . . . ∥msg_(n), the polynomial c(u_(x)(t), u_(y)(t)) calculated in step ST42 is the plaintext polynomial e=Σmsg_(i)t^(i-1) with the variable t. It is, therefore, possible to perform decoding into the plaintext msg=msg′ by assigning the coefficient of t^(i) to a bit string msg′_(i), and setting the decryption result msg′=msg′₁∥msg′₂∥ . . . ∥msg′_(n).

Finally, the symmetric decryption apparatus 500 outputs the plaintext msg=msg′ from the input/output unit 502 (step ST44).

According to this embodiment, as described above, the algebraic surface polynomial X(x, y) representing an algebraic surface defined over the space F_(q)[t](polynomial ring S) is used as the mask polynomial in the first embodiment. The algebraic surface is a zero set represented by the algebraic surface polynomial X(x, y) having two variables x and y, and a curve obtained by parameterizing x and y by t exists. The section polynomial (u_(x)(t), u_(y)(t)) representing the curve is used as the secret key sk (symmetric key) in the first embodiment. With this arrangement, it is possible to obtain the same effects as those in the first embodiment.

That is, according to this embodiment, with the arrangement in which the ciphertext c(x, y) is generated by processing of generating the plaintext polynomial e by embedding the plaintext msg in each term of the polynomial in the subspace of the space F_(q)[t], and adding the plaintext polynomial e and the algebraic surface polynomial (mask polynomial) having the section polynomial (symmetric key) as a solution, it is possible to increase the parallelism and improve the calculation efficiency.

Furthermore, according to this embodiment, with the arrangement in which when the input of the thus generated ciphertext c(x, y) is accepted, the ciphertext c(x, y) is decrypted into the plaintext polynomial e based on the symmetric key (section polynomial), and the decrypted plaintext polynomial e is decrypted into the plaintext msg, it is possible to increase the parallelism and improve the calculation efficiency.

Therefore, as described above, it is possible to embed a multi precision plaintext in one ciphertext, and encrypt a plaintext with a size larger than the processing unit of a CPU without performing data processing with multi precision.

<Modifications of Second Embodiment>

In the second embodiment, it is also possible to configure modifications associated with homomorphic calculation and encoding processes (1) to (7), as in Modification 2 and other modifications of the first embodiment.

Similarly to the first embodiment, in the above-described second embodiment and modifications, the mask polynomial X(x, y) having the secret key sk as a solution is used to perform encryption processing according to c(x, y)=X(x, y)+e. At this time, a reversible element D (for example, D=1) in the subspace M may be used to calculate the encryption processing as c(x, y)=[X(x, y)+D]*e, where “*” represents multiplication in R. In this case, the secret key sk may be input to the ciphertext c(x, y) to calculate c(u_(x)(t), u_(y)(t))=[X(x, y)+D]*e=D*e, thereby calculating e by dividing D*e by D.

According to at least one of the above-described embodiments, with an arrangement in which a ciphertext is generated by processing of generating a plaintext polynomial by embedding plaintext information in each term of a polynomial in a subspace of a polynomial ring, and adding the plaintext polynomial and a mask polynomial having a symmetric key as a solution, it is possible to increase the parallelism and improve the calculation efficiency.

Furthermore, with an arrangement in which when the input of the thus generated ciphertext is accepted, the ciphertext is decrypted into the plaintext polynomial based on the symmetric key, and the decrypted plaintext polynomial is decrypted into the plaintext information, it is possible to increase the parallelism and improve the calculation efficiency.

The method described in each embodiment can also be stored in a storage medium such as a magnetic disk (Floppy™ disk, hard disk, or the like), an optical disk (CD-ROM, DVD, or the like), a magneto-optical disk (MO), or a semiconductor memory as a program which can be executed by a computer and distributed.

As the storage medium, any configuration which is a computer-readable storage medium in which a program can be stored may be used regardless of a storage format.

An OS (operating system) which operates on a computer on the basis of an instruction of a program installed from the storage medium in the computer, database management software, and MW (middleware) such as network software may execute a part of the processes to realize the embodiment.

Furthermore, the storage medium according to each embodiment includes not only a medium independent of a computer but also a storage medium in which a program transmitted through a LAN, the Internet, or the like is downloaded and stored or temporarily stored.

The number of storage media is not limited to one. A case in which the process in each embodiment is executed from a plurality of media is included in the storage medium according to the present invention. Any medium configuration may be used.

A computer according to each embodiment is to execute the processes in each embodiment on the basis of the program stored in a storage medium. The computer may have any configuration such as one apparatus constituted by a personal computer or a system in which a plurality of apparatuses are connected by a network.

A computer in each embodiment includes not only a personal computer but also an arithmetic processing apparatus, a microcomputer, or the like included in an information processing apparatus. The computer is a generic name of an apparatus and a device which can realize the functions of the present invention by a program.

While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions. 

1. A symmetric encryption apparatus comprising: a storage unit configured to store a symmetric key formed from a plurality of elements of a first polynomial ring; a plaintext acceptance unit configured to accept input of plaintext information; a plaintext polynomial generation unit configured to generate a plaintext polynomial by embedding the plaintext information whose input has been accepted in at least one of terms of a polynomial in a subspace of the first polynomial ring; a mask polynomial generation unit configured to generate a mask polynomial having the symmetric key as a solution based on a second commutative ring defined over the first polynomial ring; and an encryption unit configured to generate a ciphertext using the plaintext polynomial and the mask polynomial.
 2. The apparatus according to claim 1, wherein the plaintext polynomial generation unit additively divides the plaintext information into a plurality of pieces of partial information, and embeds the plurality of pieces of partial information as coefficients of respective terms of the plaintext polynomial.
 3. The apparatus according to claim 1, further comprising a homomorphic calculation unit configured to, when the plaintext polynomial generation unit, the mask polynomial generation unit, and the encryption unit separately generate two ciphertexts from two plaintext polynomials, generate a new ciphertext by homomorphic calculation processing of adding the two ciphertexts, wherein a result of decrypting the new ciphertext based on the symmetric key is equal to a result of adding the two plaintext polynomials.
 4. The apparatus according to claim 1, wherein the mask polynomial is an algebraic surface polynomial representing an algebraic surface defined over the polynomial ring, the algebraic surface is a zero set represented by the algebraic surface polynomial having two variables x and y, and a curve obtained by parameterizing x and y by t exists, and the symmetric key is a section polynomial representing the curve.
 5. A symmetric decryption apparatus comprising: a ciphertext acceptance unit configured to accept input of a ciphertext generated using a plaintext polynomial generated by embedding plaintext information in at least one of terms of a polynomial in a subspace of a first polynomial ring, and a mask polynomial which has, as a solution, a symmetric key formed from a plurality of elements of the first polynomial ring, and has been generated based on a second commutative ring defined over the first polynomial ring; a storage unit configured to store the symmetric key; a plaintext polynomial decryption unit configured to decrypt the ciphertext into a plaintext polynomial based on the symmetric key in the storage unit; and a decryption unit configured to decrypt the decrypted plaintext polynomial into the plaintext information.
 6. The apparatus according to claim 5, wherein the plaintext information is additively divided into a plurality of pieces of partial information, and the plurality of pieces of partial information are embedded in respective terms of the plaintext polynomial as coefficients, and the decryption unit performs decryption into the plaintext information by extracting coefficients of respective terms of the decrypted plaintext polynomial as the plurality of pieces of partial information, and calculating a total sum of the plurality of pieces of partial information.
 7. The apparatus according to claim 5, wherein the ciphertext whose input has been accepted has been generated by homomorphic calculation processing of adding two ciphertexts separately generated from two plaintext polynomials, and a decryption result of the decryption unit is equal to a result of adding the two plaintext polynomials.
 8. The apparatus according to claim 5, wherein the mask polynomial is an algebraic surface polynomial representing an algebraic surface defined over the polynomial ring, the algebraic surface is a zero set represented by the algebraic surface polynomial having two variables x and y, and a curve obtained by parameterizing x and y by t exists, and the symmetric key is a section polynomial representing the curve.
 9. A non-transitory computer-readable storage medium storing a symmetric encryption program to be executed by a computer including a storage unit, the symmetric encryption program comprising: a first program code of causing the computer to execute processing of writing a symmetric key formed from a plurality of elements of a first polynomial ring in the storage unit; a second program code of causing the computer to execute processing of accepting input of plaintext information; a third program code of causing the computer to execute processing of generating a plaintext polynomial by embedding the plaintext information whose input has been accepted in at least one of terms of a polynomial in a subspace of the first polynomial ring; a fourth program code of causing the computer to execute processing of generating a mask polynomial having the symmetric key as a solution based on a second commutative ring defined over the first polynomial ring; and a fifth program code of causing the computer to execute processing of generating a ciphertext using the plaintext polynomial and the mask polynomial.
 10. A non-transitory computer-readable storage medium storing a symmetric decryption program to be executed by a computer including a storage unit, the symmetric decryption program comprising: a first program code of causing the computer to execute processing of accepting input of a ciphertext generated using a plaintext polynomial generated by embedding plaintext information in at least one of terms of a polynomial in a subspace of a first polynomial ring, and a mask polynomial which has, as a solution, a symmetric key formed from a plurality of elements of the first polynomial ring, and has been generated based on a second commutative ring defined over the first polynomial ring; a second program code of causing the computer to execute processing of writing the symmetric key in the storage unit; a third program code of causing the computer to execute processing of decrypting the ciphertext into a plaintext polynomial based on the symmetric key in the storage unit; and a fourth program code of causing the computer to execute processing of decrypting the decrypted plaintext polynomial into the plaintext information. 